﻿
@if (Request.IsAuthenticated) 
{
<div style="margin:-145px 0 0 860px; font-size:14px"  >
    Chào : @Html.ActionLink(@Html.Encode(User.Identity.Name), "Profile", "TaiKhoan")
    <span id="Open-Form-logOut" style="background-image: url('/Images/UserDesign/Bullet.png'); background-position:-8px -5px; cursor:pointer">&nbsp;&nbsp;&nbsp;&nbsp;</span>
</div>
}
else
{
    <div style="margin:-140px 0 0 840px">
        @Html.ActionLink("Đăng Nhập", "DangNhap", "TaiKhoan", null, new { @style = " color: #676767; padding: 5px 5px; cursor:pointer " })
        <span style=" color: #676767; padding: 5px 5px; ">|</span>
        @Html.ActionLink("Đăng Ký", "DangKy", "TaiKhoan", null, new { @style = " color: #676767; padding: 5px 5px; " })
    </div> 
}
<div id="Form-logOut" class="hide">
    <table>
        <tr>
            <td style="padding-left:10px"><img src="~/Images/AdminDesign/account.png" />
            </td>
            <td style="text-align:left ; padding-left:7px ; vertical-align:middle">
                @Html.ActionLink("Thông Tin Tài Khoản", "ThongTinTaiKhoan", "TaiKhoan")
                <hr style="width:100%" />
            </td>
        </tr>
        <tr>
            <td style="padding-left:10px"><img src="~/Images/AdminDesign/change.png" /></td>
            <td style="text-align: left; padding-left: 7px">@Html.ActionLink("Đổi Mật Khẩu", "DoiMatKhau", "TaiKhoan")
                <hr style="width:100%" />
            </td>
        </tr>
        <tr>
            <td style="padding-left:10px"><img src="~/Images/AdminDesign/change.png" /></td>
            <td style="text-align: left; padding-left: 7px"> @Html.ActionLink("Đăng Thông Tin Xe", "KH_DangXe", "Default")
                <hr style="width:100%" />
                </td>
        </tr>
        <tr>
            <td style="padding-left:10px"><img src="~/Images/AdminDesign/change.png" /></td>
            <td style="text-align: left; padding-left: 7px">
                @Html.ActionLink("Tất Cả bài Viết", "ChoThueKhachHang","Default")
                <hr style="width:100%" />
            </td>
        </tr>
        <tr>
            <td style="padding-left:10px"><img src="~/Images/AdminDesign/exit.png" /></td>
            <td style="text-align: left; padding-left: 7px">
                @using (Html.BeginForm("LogOff", "TaiKhoan", FormMethod.Post, new { id = "logoutForm" }))
                {
                    @Html.AntiForgeryToken()
                    <a href="javascript:document.getElementById('logoutForm').submit()">Đăng xuất</a>
                }
            </td>
       </tr>

    </table>
   
    @*@Html.ActionLink("Thông Tin Tài Khoản", "ThongTinTaiKhoan", "TaiKhoan")<br />
    @Html.ActionLink("Đổi Mật Khẩu", "DoiMatKhau", "TaiKhoan")<br />
    @Html.ActionLink("Đăng Thông Tin Xe", "KH_DangXe", "Default")<br />*@
    @*@using (Html.BeginForm("LogOff", "TaiKhoan", FormMethod.Post, new { id = "logoutForm" }))
    {
            @Html.AntiForgeryToken()
            <a href="javascript:document.getElementById('logoutForm').submit()">Đăng xuất</a>
        }*@
</div>
